package com.boot.business;

import jakarta.validation.constraints.Positive;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class PurchaseDTO {
    @Positive(message = "商品ID必须为正整数")
    private Long productId;
    @Positive(message = "用户ID必须为正整数")
    private Long userId;
    @Positive(message = "商品数量必须为正整数")
    private Integer num;

    private BigDecimal  totalAmount;
}
